﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Contoso.Models;
using System.Web.Mvc;

namespace Contoso.Tests.Fakes
{
    public class FakeStudentsData
    {
        public static List<Student> CreateStudentData()
        {

            var students = new List<Student>
            {
                new Student { StudentID = 1, FirstMidName = "Carson",   LastName = "Alexander", EnrollmentDate = DateTime.Parse("2005-09-01") },
                new Student { StudentID = 2, FirstMidName = "Meredith", LastName = "Alonso",    EnrollmentDate = DateTime.Parse("2002-09-01") },
                new Student { StudentID = 3, FirstMidName = "Arturo",   LastName = "Anand",     EnrollmentDate = DateTime.Parse("2003-09-01") },
                new Student { StudentID = 4, FirstMidName = "Gytis",    LastName = "Barzdukas", EnrollmentDate = DateTime.Parse("2002-09-01") },
                new Student { StudentID = 5, FirstMidName = "Yan",      LastName = "Li",        EnrollmentDate = DateTime.Parse("2002-09-01") },
                new Student { StudentID = 6, FirstMidName = "Peggy",    LastName = "Justice",   EnrollmentDate = DateTime.Parse("2001-09-01") },
                new Student { StudentID = 7, FirstMidName = "Laura",    LastName = "Norman",    EnrollmentDate = DateTime.Parse("2003-09-01") },
                new Student { StudentID = 8, FirstMidName = "Nino",     LastName = "Olivetto",  EnrollmentDate = DateTime.Parse("2005-09-01") }
            };

            return students;
        }


        public static Student CreateStudent()
        {
            var student = new Student();

            student.FirstMidName = "TestNewFirstMidName";
            student.FirstMidName = "FirstMidName";
            student.FirstMidName = "TestNewLastName";
            student.FirstMidName = "2011-09-14";
            return student;
        }


        public static FormCollection CreateStudentsFormCollection()
        {
            var form = new FormCollection();

            form.Add("FirstMidName", " TestNewFirstMidName");
            form.Add("LastName", "TestNewLastName");
            form.Add("EnrollmentDate", "2011-09-14");
            return form;
        }




    }
}
